package com.js.foodordersystem.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 存储菜品信息(Dish)实体类
 *
 * @author makejava
 * @since 2025-01-09 10:52:48
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Dish implements Serializable {
    private static final long serialVersionUID = -31632720388802315L;
    /**
     * 菜品ID，主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long dishId;
    /**
     * 菜品名称
     */
    private String name;
    /**
     * 菜品描述
     */
    private String description;
    /**
     * 菜品价格
     */
    private BigDecimal price;
    /**
     * 菜品库存
     */
    private Integer stock;
    /**
     * 菜品图片链接
     */
    private String imageUrl;
    /**
     * 菜品状态：1可售或0不可售
     */
    private Integer status;
    /**
     * 菜品创建时间
     */
    private Date createdAt;
    /**
     * 菜品更新时间
     */
    private Date updatedAt;
    /**
     * 菜品分类ID
     */
    private Long dishCategoryId;
    /**
     * 餐厅ID
     */
    private Long restaurantId;
    /**
     * 搜索关键词
     */
    @TableField(exist = false)
    private String keyword;

}

